﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BZZ_book.aspx.cs" Inherits="Web.myadmin.book" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>书籍列表 - 后台管理 </title>
<link href="/css/bkcss.css" rel="stylesheet" type="text/css" />
<script src="/js/function.js" type="text/javascript"></script>
</head>
<body>
<div id="DivPromptMessage" runat="server">
    <asp:Literal ID="litPromptMessage" runat="server"></asp:Literal>
</div>
    <form id="form1" runat="server">
    
<div id="divQuery" runat="server">
     <table cellpadding="2" cellspacing="0" class="tblQuery">
	    <tr> 
		    <td class="tdQuery">
             <%--id：<asp:TextBox ID="txtQryId" runat="server"  CssClass="clsInput" ></asp:TextBox>--%>
             类别：<asp:TextBox ID="txtQryCata" runat="server"  CssClass="clsInput" ></asp:TextBox>
             书名：<asp:TextBox ID="txtQryBookName" runat="server"  CssClass="clsInput" ></asp:TextBox>
             <%--介绍：<asp:TextBox ID="txtQryAbout" runat="server"  CssClass="clsInput" ></asp:TextBox>--%>
             <%--排序：<asp:TextBox ID="txtQrySortid" runat="server"  CssClass="clsInput" ></asp:TextBox>--%>
             <%--扩展1：<asp:TextBox ID="txtQryExt1" runat="server"  CssClass="clsInput" ></asp:TextBox>--%>
             <%--扩展2：<asp:TextBox ID="txtQryExt2" runat="server"  CssClass="clsInput" ></asp:TextBox>--%>
             <asp:Button ID="btnQuery"  CssClass="btnQuery" runat="server" Text=" 查询 "  OnClick="btnQuery_Click" />
		     </td>
	    </tr>
    </table>
</div>

<div id="divList" runat="server">
     <asp:Repeater runat="server" ID="rptInfoList">
        <HeaderTemplate>
           <table cellspacing="0" cellpadding="2" class="tblList">
             <tr> 
	              <td class="tdListTop">编号 </td>
	              <td class="tdListTop">类别</td>
	              <td class="tdListTop">书名</td>
	              <td class="tdListTop">介绍</td>
	              <%--<td class="tdListTop">排序</td>--%>
	              <%--<td class="tdListTop">扩展1</td>--%>
	              <%--<td class="tdListTop">扩展2</td>--%>
	              <td class="tdListTop">操作</td>
             </tr>
          </HeaderTemplate>
          <ItemTemplate>
               <tr onmouseover="this.bgColor='#8CBDE7'" onmouseout="this.bgColor='#ffffff'"> 
	              <td class="tdList"><%# Eval("id") %></td>
	              <td class="tdList"><%# Eval("cata")%></td>
	              <td class="tdList"><%# Eval("bookName")%></td>
	              <td class="tdList"><%# Eval("about")%></td>
	              <%--<td  class="tdList"><%# Eval("sortid")%></td>--%>
	              <%--<td  class="tdList"><%# Eval("ext1")%></td>--%>
	              <%--<td  class="tdList"><%# Eval("ext2")%></td>--%>
	              <td class="tdList">	
	                  <a href="?cmd=view&id=<%# Eval("id") %>" class="linkView" onclick="return openWin(this.href);">查看</a>&nbsp;
	                   <a href="?cmd=edit&id=<%# Eval("id") %>" class="linkEdit" onclick="return openWin(this.href);">修改</a>&nbsp;
	                   <a href="?cmd=delete&id=<%# Eval("id") %>" onclick="return confirm('确定是要删除该记录吗？')" class="linkDelete">删除</a>
	              </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
           </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="divPager">
         <asp:Literal ID="litPager" runat="server" ></asp:Literal>
    </div>
        
</div>

<div runat="server" id="divForm">
<table cellpadding="2" cellspacing="0" class="tblForm">
	<tr> 
		<td colspan="2" class="tdFormHead">  <asp:Label ID="lblFormTitle" runat="server" Text="修改"></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">类别：</td>
		<td class="tdFormRight">  
            <asp:DropDownList ID="ddlCata" runat="server"  DataTextField="dataText" DataValueField="dataValue" >
	<asp:ListItem Value="历史" >历史</asp:ListItem>
	<asp:ListItem Value="诸子" >诸子</asp:ListItem>
	<asp:ListItem Value="诗歌" >诗歌</asp:ListItem>
	<asp:ListItem Value="散文" >散文</asp:ListItem>
	<asp:ListItem Value="其它" >其它</asp:ListItem>
</asp:DropDownList>

</td>
	</tr>
	<tr> 
		<td class="tdFormLeft">书名：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtBookName" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">介绍：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtAbout" runat="server"  CssClass="clsInput" TextMode="MultiLine" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">排序：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtSortid" runat="server"  CssClass="clsInput" Width="26px" ></asp:TextBox></td>
	</tr>

	<tr> 
		<td colspan="2" align="center" style="font-size: 30px;">
         <asp:Button ID="btnSumit"  CssClass="btnSumit" runat="server" Text=" 发布 "  OnClick="btnSumit_Click" />
		<input class="btnCancel" type="reset" value=" 取消 " />
		<asp:TextBox ID="txtId" runat="server" style="display:none" Text="0"></asp:TextBox></td>
	</tr>
</table>
</div>

<div runat="server" id="divView">
<table cellpadding="2" cellspacing="0" class="tblView">
	<tr> 
		<td colspan="2" class="tdViewHead">  <asp:Label ID="lblViewTitle" runat="server" Text="查看"></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdViewLeft">类别：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblCata" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdViewLeft">书名：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblBookName" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdViewLeft">介绍：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblAbout" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdViewLeft">排序：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblSortid" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdViewLeft">扩展1：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblExt1" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdViewLeft">扩展2：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblExt2" runat="server" ></asp:Label></td>
	</tr>
</table>
</div>
    
    </form>
</body>
</html>

